var highlightcolor = '#eafcd5';
//此处clickcolor只能用win系统颜色代码才能成功,如果用#xxxxxx的代码就不行,还没搞清楚为什么:(
var normalcolor = '#ffffff';
//为新添加的任务栏，增加鼠标跟踪变色显示功能，changeto()和changeback()为两个功能互为相反的变色函数
function  changeto(tr){
         var source=event.srcElement;
         if(source.tagName=="TR"||source.tagName=="TABLE"){
            return;
         }          
         while(source.tagName!="TD"){
            source=source.parentElement;
         }  
         source=source.parentElement;
         var cs = source.children;
         if(cs[1].style.backgroundColor!=highlightcolor){
              for(i=0;i<cs.length;i++){
	             cs[i].style.backgroundColor=highlightcolor;
              }
         }
}

function changeback(tr){
	     var source=event.srcElement;
         if(source.tagName=="TR"||source.tagName=="TABLE"){
            return;
         }          
         while(source.tagName!="TD"){
            source=source.parentElement;
         }  
         source=source.parentElement;
         var cs = source.children;
         if(cs[1].style.backgroundColor!=normalcolor){
              for(i=0;i<cs.length;i++){
	             cs[i].style.backgroundColor=normalcolor;
              }
         }
}

//onmouseover="changeto(this)" onmouseout="changeback(this)"
